//package csm.web;
//
//import org.eclipse.jetty.jmx.MBeanContainer;
//import org.eclipse.jetty.server.Server;
//import org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker;
//import org.eclipse.jetty.webapp.WebAppContext;
//
//import java.io.File;
//import java.lang.management.ManagementFactory;
//
//public class MainTet {
//    public static void maina() throws Exception {
//        Server server = new Server( 8080 );
//
//        // Setup JMX
//        MBeanContainer mbContainer = new MBeanContainer(ManagementFactory.getPlatformMBeanServer() );
//        server.addBean( mbContainer );
//        WebAppContext webapp = new WebAppContext();
//        webapp.setContextPath( "/" );
//        File warFile = new File(
//                "../CSM-APP/web/src/main/webapp");
//        webapp.setWar(warFile.getAbsolutePath());
//        webapp.addAliasCheck(new AllowSymLinkAliasChecker());
////        webapp.setAttribute(
////                "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",
////                ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/[^/]*taglibs.*\\.jar$" );
//        server.setHandler(webapp);
//
//        // Start things up!
//        server.start();
//
//        // The use of server.join() the will make the current thread join and
//        // wait until the server is done executing.
//        // See http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#join()
//        server.join();
//    }
//}
